package weekendpractice.AnimalZoo;

public class Fish extends Animal implements Swim {
     Fish(int age, String name, String color) {
        super(age, name, color);
    }

    @Override
    void eat() {
        System.out.println(name+" can eat nothing, can only drink..");
    }

    @Override
    public void swim() {
        System.out.println("Of course, "+name+" can fly in the sea");
    }
}
